<?php
namespace QnuiRings\Model;
use Think\Model\ViewModel;
class ShopCompViewModel extends ViewModel {
   public $viewFields = array(
	 'PageComponentsInmodel'=>array('id'=>"component_id",'model_id','name',
							 'cat','max_count','mix','ver_code','price','comp_code',
							 'preview','creat_date','ordinal'=>"comp_ordinal",
							 'model_private','status','_type'=>'LEFT'),
	 'PageModels'=>array('id','name'=>"model_name",
						 'price_v1','price_v2','price_v3','price_v4','price_v5',
						 'info','preview'=>"model_preview",'qrcode','item_code',
						 '_on'=>'PageComponentsInmodel.model_id=PageModels.id','_type'=>'LEFT'),
	 'PageModelsInshop'=>array('id'=>'shop_model_id',
							   'creat_date','dead_line',
							   'status'=>'shop_model_status',
							   '_on'=>'PageModels.id=PageModelsInshop.page_model_id'),
     );
}